﻿using AiQiuQuan.Sport.Model.Enums;
using System.Text.Json.Serialization;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 课程分页请求
    /// </summary>
    public class CoursePageRequestDto : PageRequest
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 课程类型
        /// </summary>
        public CourseTypeEnum? CourseType { get; set; }

        /// <summary>
        /// 课程状态：1销售中、2停止销售
        /// </summary>
        public CourseStateEnum? State { get; set; }

        /// <summary>
        /// 场馆ID
        /// </summary>
        public Guid? VenueId { get; set; }

        /// <summary>
        /// 省份ID
        /// </summary>
        public Guid? ProvinceId { get; set; }

        /// <summary>
        /// 城市ID
        /// </summary>
        public Guid? CityId { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public decimal? Lat { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public decimal? Lng { get; set; }

        /// <summary>
        /// 平台用户ID
        /// </summary>
        public Guid? PlatformUserId { get; set; }

        /// <summary>
        /// 是否是平台访问
        /// </summary>
        [JsonIgnore]
        public bool IsPlatform { get; set; }
    }
}
